
#进入docker容器
docker exec -it kafka sh

#创建topic  名字为 sujinkeBusiness
$KAFKA_HOME/bin/kafka-topics.sh --create --topic sujinkeBusiness --partitions 1 --zookeeper zookeeper:2181 --replication-factor 1

#查看topic
$KAFKA_HOME/bin/kafka-topics.sh --zookeeper zookeeper:2181 --describe --topic sujinkeBusiness